import request from '@/axios.js'
//前端的评论功能
/**
 * 添加评论
 */
export const addComment = (data) => {
    return request.post('/comment/add', data)
}

/**
 * 获取文章评论列表
 */
export const getComments = (data) => {
    return request.post('/comment/list', data)
}

/**
 * 获取文章评论数
 */
export const getCommentCount = (data) => {
    return request.post('/comment/count', data)
}